using System.Collections;

namespace Anvil.Core.Commands
{
	/// <summary>
	/// Return a list as the outcome.
	/// </summary>
	/// 
	public class ListAll : RequestCommand
	{
		/// <summary>
		/// Test ID for Command.
		/// </summary>
		/// 
		public const string LIST_ALL = "ListAll";

		/// <summary>
		/// Fake name for test data.
		/// </summary>
		/// 
		private const string DATA = "data";

		public override bool RequestExecute(IRequestContext context)
		{
			// IList list = Mapper.Get ().QueryForList (ID, context);
			// Fake it:
			IList list = new ArrayList();
			list.Add(DATA);
			context.Outcome = list;
			return CONTINUE;
		}
	}
}